<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<h:outputStylesheet library="css" name="login.css"></h:outputStylesheet>
	<title>teste</title>
</h:head>
<h:body styleClass="body">
	<h:form>
		<p:messages id="error" showDetail="true" autoUpdate="true"
			closable="true" />

		<div align="center" class="font">
			<p:outputLabel value="Informe o Login e Senha:" />
		</div>
		
		<div align="center" style="float: left;">
			<h:graphicImage library="img" name="login.png"></h:graphicImage>
		</div>

		<div align="center" class="font">
			<h:panelGroup>

				<h:panelGrid columns="2">

					<p:outputLabel value="Login: " for="username" />
					<p:inputText value="#{userMB.user.username}" id="username" />

					<p:outputLabel value="Senha: " for="pass" />
					<p:password value="#{userMB.user.password}" id="pass" />

					<h:inputHidden value="invisivel"></h:inputHidden>
					<p:commandButton value="Logar" action="#{userMB.login}"></p:commandButton>
				</h:panelGrid>
			</h:panelGroup>
		</div>
	</h:form>

	<div id="footer" style="text-align: center;">
		<hr />
		&copy; 2014 Danilo Andrade. Todos os direitos reservados.
	</div>
</h:body>
</html>
